import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import './assets/styles/element-variables.scss'
// import './assets/styles/index.scss' // global css
import './assets/icons' // icon

import { preventReClick } from './utils/preventReClick.js' //防多次点击，重复提交
import * as echarts from 'echarts'
import './utils/directives2.js' //文字提示自定义指令
import '@/styles/index.scss' // global css

Vue.prototype.$echarts = echarts
Vue.directive('preventReClick', preventReClick)
Vue.use(ElementUI)
import vueWaves from './utils/directive/waves' //点击波纹效果
Vue.use(vueWaves)
//********全局组件******************************** */
import Pagination from './components/Pagination/index.vue'
const components = {
  install(Vue) {
    Vue.component('Pagination', Pagination)
  }
}
Vue.use(components)
//**************************************** */
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
